include mixin

#assetpane.invisible
	ul.breadcrumb
		li
			a(href='/portal/index') 首页
		li.sep >
		li
			a(href='#/asset') 理财产品
		li.sep >
		li.cd {{product.title}}
		
	div(ng-switch='viewType')
		.box-btop-v2.money-topbox(ng-switch-when=1)
			h2.box-header-v2.money-topbox-header {{product.title}}
				small.money-topbox-sub.money-color 产品代码: {{product.code}}
				.money-topbox-paymethod.money-color.pull-right
					span.mright10.money-method-label 结算方式: 
					em.icn_earnest.mright8(ng-show="product.sale_method_earnest", title='保证金支付')
					em.icn_card_pay(ng-show="product.sale_method_bank", title='银行卡支付')
					//-span.pexsalemethod.edsMethod(ng-show="product.extra2.sale_method == 'ed' || product.extra2.sale_method == 'de'")
						em.icn_earnest(title='保证金支付')
						em.icn_card_pay(title='银行卡支付')
						em.icn_direct_pay(title='淘金宝支付',style='display:none')
			.grid-col2-v2
				.col-v2.money-col-topbox-left
					table.money-top-first
						tr
							td.money-color(ng-switch='!product.extra2.yjbjjz')
								span(ng-switch-when='true') 累计效益(%):
									span.money-top-em {{(product.extra2.latest_netval[0].cumulation_income_ratio | percentage : 2) || '--'}}
							
								span(ng-switch-when='false') 业绩比较基准(%):
									span.money-top-em {{product.extra2.yjbjjz | percentage : 2}}
							td.money-color 首次最低金额:
								span.money-top-em(ng-show='product.extra2.money_type != "fund_like"') {{product.extra2.otc_info.open_share | number:2}}
								span.money-top-em(ng-show='product.extra2.money_type == "fund_like"')
									span(ng-show='product.extra2.latest_info.fund_status == "1"') {{product.extra2.latest_info.open_share | number:2}}
									span(ng-show='product.extra2.latest_info.fund_status != "1"') {{product.extra2.latest_info.min_perfapp_balance | number:2}}

					table.money-info.tal
						tr.money-info-sep
							td.money-color-gray.money-info-label 风险等级:
							td {{fundRiskLevelLabels[product.risk_level]}}
							td.money-color-gray.money-info-label 成立时间:
							td {{product.extra2.contracteffectdate | date : 'yyyy-MM-dd'}}
						tr.money-info-sep
							td.money-color-gray.money-info-label 最低追加:
							//- (money_type: "fund_like") 最小追加金额:  "extra2?.latest_info?.sub_unit"  面值：  "extra2?.latest_info?.nav"
							td(ng-show='product.extra2.money_type == "fund_like"', ng-bind='product.extra2.latest_info.sub_unit')
							td(ng-show='product.extra2.money_type != "fund_like"', ng-bind='product.extra2.otc_info.allot_limitshare')
							td.money-color-gray.money-info-label 份额面值:
							td(ng-show='product.extra2.money_type == "fund_like"', ng-bind='product.extra2.latest_info.nav')
							td(ng-show='product.extra2.money_type != "fund_like"', ng-bind='product.extra2.otc_info.par_value')
						tr.money-info-sep
							td.money-color-gray.money-info-label 产品类型:
							td {{product.extra2.money_product_type}}
							td.money-color-gray.money-info-label 产品管理人:
							td {{product.vendor}}
						tr
							td.money-color-gray.money-info-label 推荐理由:
							td(colspan=3) {{product.extra2.rcmdreason}}
				.col-v2.money-col-topbox
					input.money-input(type='number', ng-model='$parent.number', min=0, ng-maxlength=20, required, gf-blur='($parent.number <= 0 || !$parent.number) && ($parent.number = product.extra2.csje)')
					div(ng-show='product.extra2.invest_end_date')
						.mtop30
							| 预计{{product.extra2.invest_end_date | date : 'yyyy-MM-dd'}}, 收益
							span.money-inline-em {{calculateYQSY(number, product) | number: 2}}
							| 元，这笔投资可以让您
						.money-topbox-result
						| {{incomedetail}}
					
					.mtop30(ng-switch="product.extra2.is_purchase_status || product.id == 'M_878001'")
						div(ng-switch-when='true')
							div(ng-switch="!product.extra2.buy_at_other_site")
								a(ng-switch-when='true', ng-click="purchaseProduct(product)", href='javascript:void(0)').btn-v2.btn-large 立即购买
								a(ng-switch-when='false', gf-href='{{product.extra2.buy_at_other_site}}', target="_blank").btn-v2.btn-large 立即购买
						div(ng-switch-when='false')
							span.btn-v2.btn-large.btn-disabled 暂停交易

		.yui3-g.fd-detail(ng-switch-when=2)
			.yui3-u-7-12(ng-show="product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5'")
				table.border(style='height: 400px;')
					tr
						td(width='100%', height='90%').vam.nomp
							img(ng-src='/_image/pdt_asset_{{product.id}}_detail', width='85%', height='85%')
					tr
						td
							.dtsylWrap
								span(ng-mouseenter="dtsylInfo=true",ng-mouseleave="dtsylInfo=false") 动态收益率{{product.dtsyl | number:6}}% (年化)
								.dtsylInfo(ng-show="dtsylInfo",ng-mouseenter="dtsylInfo=true",ng-mouseleave="dtsylInfo=false") 假设指数期末价格与当前价格相等时，您预计能获取的收益
			.yui3-u-7-12(ng-show="!(product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5')",ng-switch="show_types.indexOf('tp')>-1")
				div(ng-switch-when='false')
					table.bc
						tr(ng-switch='878001 == product.code')
							td(ng-switch-when='true', colspan=6, gf-chart='chartData', id='fundchart', style='height: 372px;*height: 397px;', data-option="{compare: 'percent'}")
							td(ng-switch-when='false', colspan=6, gf-chart='chartData', id='fundchart', style='height: 284px;*height: 309px;', data-option="{compare: 'percent'}")
						tr(ng-hide='878001 == product.code')
							td &nbsp;
							td 一个月
							td 三个月
							td 六个月
							td 今年以来
							td 过去一年
						tr(ng-hide='878001 == product.code')
							td.b.padleft0.padright0 总回报(%)
							td(ng-bind="(product.extra2.latest_netval[0].yieldrate1m | percentage : 2) || '--'")
							td(ng-bind='compareDate((product.extra2.latest_netval[0].yieldrate3m | percentage : 2), product.extra2.contracteffectdate, 90)')
							td(ng-bind='compareDate((product.extra2.latest_netval[0].yieldrate6m | percentage : 2), product.extra2.contracteffectdate, 180)')
							td(ng-bind='yieldratety((product.extra2.latest_netval[0].yieldratety | percentage : 2), product.extra2.contracteffectdate)')
							td(ng-bind='compareDate((product.extra2.latest_netval[0].yieldrate1y | percentage : 2), product.extra2.contracteffectdate, 365)')
							
					.mtop10.tar 净值日期 : {{product.extra2.latest_netval[0].init_date | datehyphen : !0}}

				table.border(ng-switch-when='true', style='height: 400px;')
					tr
						td(width='100%', height='100%').vam.nomp
							img(ng-src='/_image/pdt_asset_{{product.id}}_detail', width='85%', height='85%')

				
			.yui3-u-1-24 &nbsp;
			
			section.yui3-u-3-8(ng-show="product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5'")
				header
					.money-topbox-paymethod.money-color.pull-right
						span.mright10.money-method-label 结算方式:
						em.icn_earnest.mright8(ng-show="product.sale_method_earnest", title='保证金支付')
						em.icn_card_pay(ng-show="product.sale_method_bank", title='银行卡支付')
					h1.nomp.bc.ib(style='margin-top: -12px;') {{product.title}}
					small.font14(ng-hide='!product.extra2.latest_info.status') ( {{productStatus[product.extra2.latest_info.status]}} )
					.gc.font.nor  产品代码: {{product.code}}
				.mtop10.yui3-g
					.yui3-u-1-2
						time.b 发售时间：
						| {{product.extra2.begin_sell_date}}
					.yui3-u-1-2
						b 风险等级：
						| {{fundRiskLevelLabels[product.risk_level]}}
				.mtop10
					b 预期年化收益：
					{{product.extra2.yqsyl_desc}}
												
				.mtop10
					b 产品发行人：
					| {{product.extra2.publisher}}

					.mtop10
						b 产品类型：
						| {{product.extra2.money_product_type}}
					#cyje.mtop10(gf-asset-detail='{{product.extra2.participationamount}}')
						b 参与金额：
						.vam.ib.oneline(style='width:270px') {{product.extra2.participationamount}}
						img.mlem(src='../img/blank.gif', ng-hide='!product.extra2.participationamount').down
					.mtop10
						b 剩余金额：
						| {{product.syed}}
					#tjly.mtop10(gf-asset-detail='{{product.extra2.rcmdreason}}')
						b 推荐理由：
						.vam.ib.oneline(style='width:270px') {{product.extra2.rcmdreason}}
						img.mlem(src='../img/blank.gif', ng-hide='!product.extra2.rcmdreason').down

					.mtop10
						b 购买金额：
						input(type='number', ng-model='$parent.number', min=0, ng-maxlength=20, required, gf-blur='($parent.number <= 0 || !$parent.number) && ($parent.number = product.extra2.csje)').w5em
						| 元
					
					.mtop10.border.pad10.boxbg
						.mtop10
							span.mrem2 已选择: {{product.title}}
							| 总价: 
							span.rc  ￥{{number || 0}}

						.mtop10.mbottom10(ng-switch="product.extra2.is_purchase_status || product.id == 'M_878001'")
							.yui3-g(ng-switch-when='true')
								.yui3-u-1-2(ng-switch="!product.extra2.buy_at_other_site")
									a(ng-switch-when='true', ng-click="purchaseProduct(product)", href='javascript:void(0)').btn.primary.mtop10.mlem 立即购买
									a(ng-switch-when='false', gf-href='{{product.extra2.buy_at_other_site}}', target="_blank").btn.primary.mtop10.mlem 立即购买
								.yui3-u-1-2
									b.rc(ng-bind='product.extra2.gmts')
							span(ng-switch-when='false')
								span.btn.primary.mtop10.mlem.disabled 暂停交易
								.ib(ng-hide='product.title.indexOf("多添利x") > -1 || product.title.indexOf("多添利X") > -1')
									.ib.vam.mleft20.b(ng-hide='product.extra2.is_purchase_status || product.extra2.open_day == 3')
										| 下次开放时间
										br
										| (
										span(ng-bind="product.extra2.open_day + '' | datehyphen")
										| )
									a.mon-date-icon.mleft10(href='javascript:void(0);', gf-title='cxkfr', title='查询开放日', ng-click='searchOpenday(product.code)', gf-cxkfr)

				.mtop10(ng-show="product.id == 'M_870017'")
					b.error-message 2014年3月11日为份额折算日，当天净值将折算至面值1元
			section.yui3-u-3-8(ng-show="!(product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5')")
				header
					.money-topbox-paymethod.money-color.pull-right
						span.mright10.money-method-label 结算方式:
						em.icn_earnest.mright8(ng-show="product.sale_method_earnest", title='保证金支付')
						em.icn_card_pay(ng-show="product.sale_method_bank", title='银行卡支付')
					h1.nomp.bc.ib(style='margin-top: -12px;') {{product.title}}
					small.font14(ng-hide='!product.extra2.latest_info.status') ( {{productStatus[product.extra2.latest_info.status]}} )
					.gc.font.nor  产品代码: {{product.code}}

					
				.mtop10.yui3-g
					.yui3-u-1-2
						time.b 成立时间：
						| {{product.extra2.contracteffectdate | date : 'yyyy-MM-dd'}}
					.yui3-u-1-2(ng-switch='!product.extra2.yjbjjz')
						div(ng-switch-when='true')
							b 累计效益(%)：
							{{(product.extra2.latest_netval[0].cumulation_income_ratio | percentage : 2) || '--'}}
							
						div(ng-switch-when='false')
							b 业绩比较基准(%)：
							{{product.extra2.yjbjjz | percentage : 2}}
						
				.mtop10
					b 产品管理人：
					| {{product.vendor}}

					.mtop10
						b 产品类型：
						| {{product.extra2.money_product_type}}
					.mtop10
						b 风险等级：
						| {{fundRiskLevelLabels[product.risk_level]}}
					#cyje.mtop10(gf-asset-detail='{{product.extra2.participationamount}}')
						b 参与金额：
						.vam.ib.oneline(style='width:270px') {{product.extra2.participationamount}}
						img.mlem(src='../img/blank.gif', ng-hide='!product.extra2.participationamount').down
					#tjly.mtop10(gf-asset-detail='{{product.extra2.rcmdreason}}')
						b 推荐理由：
						.vam.ib.oneline(style='width:270px') {{product.extra2.rcmdreason}}
						img.mlem(src='../img/blank.gif', ng-hide='!product.extra2.rcmdreason').down

					.mtop10
						b 购买金额：
						input(type='number', ng-model='$parent.number', min=0, ng-maxlength=20, required, gf-blur='($parent.number <= 0 || !$parent.number) && ($parent.number = product.extra2.csje)').w5em
						| 元
					
					.mtop10.border.pad10.boxbg
						.mtop10
							span.mrem2 已选择: {{product.title}}
							| 总价: 
							span.rc  ￥{{number || 0}}

						.mtop10.mbottom10(ng-switch="product.extra2.is_purchase_status || product.id == 'M_878001'")
							.yui3-g(ng-switch-when='true')
								.yui3-u-1-2(ng-switch="!product.extra2.buy_at_other_site")
									a(ng-switch-when='true', ng-click="purchaseProduct(product)", href='javascript:void(0)').btn.primary.mtop10.mlem 立即购买
									a(ng-switch-when='false', gf-href='{{product.extra2.buy_at_other_site}}', target="_blank").btn.primary.mtop10.mlem 立即购买
								.yui3-u-1-2
									b.rc(ng-bind='product.extra2.gmts')
							span(ng-switch-when='false')
								span.btn.primary.mtop10.mlem.disabled 暂停交易
								.ib(ng-hide='product.title.indexOf("多添利x") > -1 || product.title.indexOf("多添利X") > -1')
									.ib.vam.mleft20.b(ng-hide='product.extra2.is_purchase_status || product.extra2.open_day == 3')
										| 下次开放时间
										br
										| (
										span(ng-bind="product.extra2.open_day + '' | datehyphen")
										| )
									a.mon-date-icon.mleft10(href='javascript:void(0);', gf-title='cxkfr', title='查询开放日', ng-click='searchOpenday(product.code)', gf-cxkfr)

					.mtop10(ng-show="product.id == 'M_870017'")
						b.error-message 2014年3月11日为份额折算日，当天净值将折算至面值1元
						

	.mtop20.grid-col2-v2.ng-cloak.fd-detail
		.col-v2
			.border.boxtab(gf-set-tabcls='{{show_types}}', ng-init='tab=1')
				div(ng-show="product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5'")
					.tabbar-v2
						.tab-v2.tab-pad
						.tab-v2(ng-class="{active: tab==1}", ng-click="tab=1") 产品简介
						.tab-v2(ng-class="{active: tab==11}", ng-click="tab=11") 收益计算
						.tab-v2(ng-class="{active: tab==7}", ng-click="tab=7") 法律文件
						.tab-v2.tab-pad
				div(ng-show="!(product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5')")
					.tabbar-v2
						.tab-v2.tab-pad
						.tab-v2(ng-class="{active: tab==1}", ng-click="tab=1") 产品简介
						.tab-v2(ng-class="{active: tab==2}", ng-click="tab=2", ng-hide='show_types.indexOf("fesy")==-1') 份额收益
						.tab-v2(ng-class="{active: tab==3}", ng-click="tab=3", ng-hide='show_types.indexOf("yqsy")==-1') 预期收益
						.tab-v2(ng-class="{active: tab==4}", ng-click="tab=4", ng-hide='product.extra2.show_type && show_types.indexOf("jhjz")==-1') 集合净值
						.tab-v2(ng-class="{active: tab==5}", ng-click="tab=5") 产品公告
						.tab-v2(ng-class="{active: tab==6}", ng-click="tab=6") 产品费率
						.tab-v2(ng-class="{active: tab==10}", ng-click="tab=10") 投资经理
						.tab-v2(ng-class="{active: tab==7}", ng-click="tab=7") 法律文件
						.tab-v2(ng-class="{active: tab==8}", ng-click="tab=8") 分红信息
						.tab-v2(ng-class="{active: tab==9}", ng-click="tab=9") 交易指南
						.tab-v2.tab-pad
						//.tab.narrow(ng-class="{active: tab==10}", ng-click="tab=10") 单据下载
				.content(ng-switch='tab', ng-show="product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5'")
					section(ng-switch-when=1).pad10
						div(ng-bind-html-unsafe="product.extra2.derive_introduce")
					section(ng-switch-when=11, ng-controller='App.MoneyNetWorthCtrl').pad10
						div(ng-bind-html-unsafe="product.extra2.ex_page1")

					section(ng-switch-when=7, ng-controller='App.MoneyLawCtrl').pad10
						nav
							ul.fd-notice
								li.relative
									a.notice(ng-href='{{product.extra2.fxjs}}', ng-class='{graybg: showAttach==$index, stress: showAttach==$index, b: showAttach==$index}', style='text-decoration: none;') {{product.name}}风险揭示书
								li.relative
									a.notice(href='#', onclick='return false', ng-click='toggle(999999, item.doc_id)', ng-class='{graybg: showAttach==999999, stress: showAttach==999999, b: showAttach==999999}', style='text-decoration: none;') 广发证券理财产品电子签名约定书
									.pad10(ng-show='showAttach==999999', style='height: 300px;overflow-y:auto;')
										pre
											include ../include/money.txt
								li.relative
									a.notice(ng-href='{{product.extra2.jyxy}}', ng-class='{graybg: showAttach==$index, stress: showAttach==$index, b: showAttach==$index}', style='text-decoration: none;') {{product.name}}交易协议
						
				.content(ng-switch='tab',ng-show="!(product.extra2.derive_type=='1' || product.extra2.derive_type=='2' || product.extra2.derive_type=='3' || product.extra2.derive_type=='4' || product.extra2.derive_type=='5')")
					section(ng-switch-when=1).pad10
						table.bc
							colgroup
								col(width='25%')
								col(width='75%')
							tr
								td.tac.vam.b 产品名称
								td.tal.vam {{product.name}}
							tr.graybg
								td.tac.vam.b 产品代码
								td.tal.vam {{product.code}}
							tr
								td.tac.vam.b 产品类型
								td.tal.vam {{product.extra2.money_product_type}}
							tr.graybg
								td.tac.vam.b 风险评级
								td.tal.vam {{fundRiskLevelLabels[product.risk_level]}}
							tr
								td.tac.vam.b 管理人
								td.tal.vam {{product.vendor}}
							tr.graybg
								td.tac.vam.b 托管人
								td.tal.vam {{product.extra2.custodian}}
							tr
								td.tac.vam.b 投资目标
								td.tal.vam(ng-bind-html-unsafe='product.extra2.invobjective')
							tr.graybg
								td.tac.vam.b 产品优势
								td.tal.vam(ng-bind-html-unsafe='product.extra2.advantage')
							tr
								td.tac.vam.b 管理期限
								td.tal.vam(ng-bind-html-unsafe='product.extra2.duration')
							tr.graybg
								td.tac.vam.b 封闭期
								td.tal.vam(ng-bind-html-unsafe='product.extra2.closedperiod')
							tr
								td.tac.vam.b 开放期
								td.tal.vam(ng-bind-html-unsafe='product.extra2.openperiod')
							tr.graybg
								td.tac.vam.b 参与金额
								td.tal.vam(ng-bind-html-unsafe='product.extra2.participationamount')
							tr
								td.tac.vam.b 推广机构
								td.tal.vam(ng-bind-html-unsafe='product.extra2.promotionagencies')
							tr.graybg
								td.tac.vam.b 投资范围
								td.tal.vam(ng-bind-html-unsafe='product.extra2.invscope')
							tr
								td.tac.vam.b 交易规则
								td.tal.vam(ng-bind-html-unsafe='product.extra2.tradingrule')
							tr.graybg
								td.tac.vam.b 收益分配
								td.tal.vam(ng-bind-html-unsafe='product.extra2.returndistribution')
							tr
								td.tac.vam.b 备注
								td.tal.vam(ng-bind-html-unsafe='product.extra2.remark')

					section(ng-switch-when=2, ng-controller='App.MoneyNetWorthCtrl').pad10
						form.padbottom20(name='dateform', ng-submit='getData(true, showtype)').nobottom
							span.mrem 日期从
							input(type='text', ng-model='beginDate', gf-date, readonly).graybg.lrem.mrem
							span.mrem 到
							input(type='text', ng-model='endDate', gf-date, readonly).graybg.lrem.mrem
							input(type='submit', value='', ng-disabled='!loaded').search-btn.mrem
							img(src='../img/loading.gif', width='16', height='16', ng-hide='loaded')

						.btop

						table.bc
							thead
								tr.selected.blur-bbottom
									th 日期
									th 每万份份额收益(元)
									th 7日年化收益率(%)

							tbody
								tr(ng-repeat='item in data', ng-class-even="'graybg'")
									td
										time {{item.init_date|datehyphen}}
									td {{item.mwfsy | number : 4}}
									td {{item.nhsyl | percentage : 2}}
												
						mixin pager
					
					section(ng-switch-when=3, ng-controller='App.MoneyNetWorthCtrl').pad10
						form.padbottom20(name='dateform', ng-submit='getData(true, showtype)').nobottom
							span.mrem 日期从
							input(type='text', ng-model='beginDate', gf-date, readonly).graybg.lrem.mrem
							span.mrem 到
							input(type='text', ng-model='endDate', gf-date, readonly).graybg.lrem.mrem
							input(type='submit', value='', ng-disabled='!loaded').search-btn.mrem
							img(src='../img/loading.gif', width='16', height='16', ng-hide='loaded')

						.btop
							
						table.bc
							thead
								tr.selected.blur-bbottom
									th 日期
									th 预期年化收益率

							tbody
								tr(ng-repeat='item in data', ng-class-even="'graybg'")
									td
										time {{item.init_date|datehyphen}}
									td {{item.cumulate_net_value | percentage : 2}}
												
						mixin pager
								
					
					section(ng-switch-when=4, ng-controller='App.MoneyNetWorthCtrl').pad10
						form.padbottom20(name='dateform', ng-submit='getData(true, showtype)').nobottom
							span.mrem 日期从
							input(type='text', ng-model='beginDate', gf-date, readonly).graybg.lrem.mrem
							span.mrem 到
							input(type='text', ng-model='endDate', gf-date, readonly).graybg.lrem.mrem
							input(type='submit', value='', ng-disabled='!loaded').search-btn.mrem
							img(src='../img/loading.gif', width='16', height='16', ng-hide='loaded')
							
						.btop

						.tar.pad15(ng-init='showtype=2')
							.graph-icon.mright10
							a(href='javascript:void(0)', ng-class='{link: showtype==2}', ng-click="showtype=1;getData(true, showtype);").b.mright15 图形
							.entry-icon.mright10
							a(href='javascript:void(0)', ng-class='{link: showtype==1}', ng-click='showtype=2;getData(false, showtype);').b 列表
						
						div(ng-switch='showtype')
							div(ng-switch-when='2', ng-switch='show_types.indexOf("my")>-1')
								div(ng-switch-when='false')
									table.bc
										thead
											tr.selected.blur-bbottom
												th 日期
												th 单位净值
												th 累计净值
												th 年度收益率
												th 累计收益率

										tbody
											tr(ng-repeat='item in data', ng-class-even="'graybg'")
												td
													time {{item.init_date|datehyphen}}
												td {{item.product_net_value | number : 4}}
												td {{item.cumulate_net_value | number : 4}}
												td {{item.year_income_ratio | percentage : 2}}
												td {{item.cumulation_income_ratio | percentage : 2}}
															
									mixin pager
								div(ng-switch-when='true')
									table.bc
										thead
											tr.selected.blur-bbottom
												th 日期
												th 单位净值(人民币)
												th 累计净值(人民币)
												th 单位净值(美元)
												th 累计净值(美元)

										tbody
											tr(ng-repeat='item in data', ng-class-even="'graybg'")
												td
													time {{item.init_date|datehyphen}}
												td {{item.product_net_value | number : 4}}
												td {{item.cumulate_net_value | number : 4}}
												td {{item.product_net_value_dollar | number : 4}}
												td {{item.cumulate_net_value_dollar | number : 4}}
															
									mixin pager


							div(ng-switch-when='1', gf-chart='netWorthChartData', id='fundNetWorthchart', data-option="{compare: 'percent', tickPixelInterval: 150}")
							
					section(ng-switch-when=5, ng-controller='App.MoneyAnnounceCtrl').pad10
						nav
							ul.fd-notice
								li(ng-repeat='item in data.dataList', ng-class='{border: showAttach==$index}').relative
									a.notice(href='#', onclick='return false', ng-click='toggle($index, item.doc_id)', ng-class='{graybg: showAttach==$index, stress: showAttach==$index, b: showAttach==$index}', style='text-decoration: none;')
										time(pubdate).bc.pull-right {{item.upload_date | date : 'yyyy-MM-dd'}}
										img(src='../img/blank.gif', ng-class='{down: showAttach!=$index, up: showAttach==$index}').cp.mright10
										span {{item.title}}
									
									.pad10(ng-show='showAttach==$index', style='height: 300px;overflow-y:auto;')
										pre(ng-bind-html-unsafe='detail[item.doc_id].content')
										
										.mtop10
											a(ng-repeat='_id in detail[item.doc_id]._ids', title='下载文档', href='/fund/blt/attach/{{_id}}', target='_blank').mrem.link 附件{{$index+1}}			
							mixin pager

					section(ng-switch-when=6, ng-init='refreshIframe()').pad10
						div(ng-hide='!product.extra2.participationfee')
							.font18.b.mlem 参与费率
							.mtop20.mlem(ng-bind-html-unsafe='product.extra2.participationfee')
						div(ng-hide='!product.extra2.exitfee')
							.font18.mtop20.b.mlem 退出费率
							.mtop20.mlem(ng-bind-html-unsafe='product.extra2.exitfee')
						div(ng-hide='!product.extra2.managementfee')
							.mtop20.mlem.font18.b 管理费
							.mtop20.mlem(ng-bind-html-unsafe='product.extra2.managementfee')
						div(ng-hide='!product.extra2.trusteeshipfee')
							.mtop20.mlem.font18.b 托管费
							.mtop20.mlem(ng-bind-html-unsafe='product.extra2.trusteeshipfee')
						div(ng-hide='!product.extra2.servicefee')
							.mtop20.mlem.font18.b 服务费
							.mtop20.mlem(ng-bind-html-unsafe='product.extra2.servicefee')

					section(ng-switch-when=7, ng-controller='App.MoneyLawCtrl').pad10
						nav
							ul.fd-notice
								li(ng-repeat='item in data.dataList', ng-class='{border: showAttach==$index}').relative
									a.notice(href='#', onclick='return false', ng-click='toggle($index, item.doc_id)', ng-class='{graybg: showAttach==$index, stress: showAttach==$index, b: showAttach==$index}', style='text-decoration: none;')
										time(pubdate).bc.pull-right {{item.upload_date | date : 'yyyy-MM-dd'}}
										img(src='../img/blank.gif', ng-class='{down: showAttach!=$index, up: showAttach==$index}').cp.mright10
										span {{item.title}}
									
									.pad10(ng-show='showAttach==$index', style='height: 300px;overflow-y:auto;')
										pre(ng-bind-html-unsafe='detail[item.doc_id].content')
										
										.mtop10
											a(ng-repeat='_id in detail[item.doc_id]._ids', title='下载文档', href='/fund/blt/attach/{{_id}}', target='_blank').mrem.link 附件{{$index+1}}			
							mixin pager

					section(ng-switch-when=8, ng-controller='App.MoneyDividendCtrl').pad10
						nav
							ul.fd-notice
								li(ng-repeat='item in data.dataList', ng-class='{border: showAttach==$index}').relative
									a.notice(href='#', onclick='return false', ng-click='toggle($index, item.doc_id)', ng-class='{graybg: showAttach==$index, stress: showAttach==$index, b: showAttach==$index}', style='text-decoration: none;')
										time(pubdate).bc.pull-right {{item.upload_date | date : 'yyyy-MM-dd'}}
										img(src='../img/blank.gif', ng-class='{down: showAttach!=$index, up: showAttach==$index}').cp.mright10
										span {{item.title}}
									
									.pad10(ng-show='showAttach==$index', style='height: 300px;overflow-y:auto;')
										pre(ng-bind-html-unsafe='detail[item.doc_id].content')
										
										.mtop10
											a(ng-repeat='_id in detail[item.doc_id]._ids', title='下载文档', href='/fund/blt/attach/{{_id}}', target='_blank').mrem.link 附件{{$index+1}}			
							mixin pager

					section(ng-switch-when=9, ng-controller='App.MoneyGuideCtrl').pad10
						nav
							ul.fd-notice
								li(ng-repeat='item in data.dataList', ng-class='{border: showAttach==$index}').relative
									a.notice(href='#', onclick='return false', ng-click='toggle($index, item.doc_id)', ng-class='{graybg: showAttach==$index, stress: showAttach==$index, b: showAttach==$index}', style='text-decoration: none;')
										time(pubdate).bc.pull-right {{item.upload_date | date : 'yyyy-MM-dd'}}
										img(src='../img/blank.gif', ng-class='{down: showAttach!=$index, up: showAttach==$index}').cp.mright10
										span {{item.title}}
									
									.pad10(ng-show='showAttach==$index', style='height: 300px;overflow-y:auto;')
										pre(ng-bind-html-unsafe='detail[item.doc_id].content')
										
										.mtop10
											a(ng-repeat='_id in detail[item.doc_id]._ids', title='下载文档', href='/fund/blt/attach/{{_id}}', target='_blank').mrem.link 附件{{$index+1}}			
							mixin pager

					section(ng-switch-when=10, ng-controller='App.MoneyInvestmentManagerCtrl').pad10
						//
							#content
								nav
									ul.fd-notice
										li(ng-repeat='item in data.dataList', ng-class='{border: showAttach==$index}').relative
											a.notice(href='#', onclick='return false', ng-click='toggle($index, item.doc_id)', ng-class='{graybg: showAttach==$index, stress: showAttach==$index, b: showAttach==$index}', style='text-decoration: none;')
												time(pubdate).bc.pull-right {{item.upload_date | date : 'yyyy-MM-dd'}}
												img(src='../img/blank.gif', ng-class='{down: showAttach!=$index, up: showAttach==$index}').cp.mright10
												span {{item.title}}
											
											.pad10(ng-show='showAttach==$index', style='height: 300px;overflow-y:auto;')
												pre(ng-bind-html-unsafe='detail[item.doc_id].content')
												
												.mtop10
													a(ng-repeat='_id in detail[item.doc_id]._ids', title='下载文档', href='/fund/blt/attach/{{_id}}', target='_blank').mrem.link 附件{{$index+1}}			
									mixin pager

						nav.clearfix
							.pull-left.mbottom15(ng-switch='!!manager.managerphoto')
								img(ng-switch-default, ng-src='/fund/blt/attach/{{manager.managerphoto}}', alt="{{product.extra2.manager | compellation : '先生' | compellation : '女士'}}", style='width: 110px;height: 150px;border: 1px solid #E5E5E5;')
								img(ng-switch-when='false', ng-src='img/no_pic.jpg', alt="{{product.extra2.manager | compellation : '先生' | compellation : '女士'}}", style='width: 110px;height: 150px;border: 1px solid #E5E5E5;')
							div(style='margin-left: 130px;')
								b.font16.mright10 {{manager.name}}
								span.bbg.wc(style='padding: 1px 8px') {{manager.job}}
								
								p
									span(ng-show='manager.sex == 0') 男
									span(ng-show='manager.sex == 1') 女
									|  / {{manager.age}}岁 / {{manager.eduction}} / {{manager.workyear}}年从业经验

								p
									&nbsp;&nbsp;&nbsp;&nbsp;{{manager.intro}}

		aside.col-v2.money-col-v2
			mixin hottest
			mixin history

	.dialog2.border.g(gf-global-dialog='moneyManagerTip').hidden
		.close(ng-click='dialog.moneyManagerTip=false', title='关闭') &nbsp;
		.pad20.clearfix
			.pull-left.mbottom15(ng-switch='!!manager.managerphoto')
				img(ng-switch-default, ng-src='/fund/blt/attach/{{manager.managerphoto}}', alt="{{product.extra2.manager | compellation : '先生' | compellation : '女士'}}", style='width: 110px;height: 150px;border: 1px solid #E5E5E5;')
				img(ng-switch-when='false', ng-src='img/no_pic.jpg', alt="{{product.extra2.manager | compellation : '先生' | compellation : '女士'}}", style='width: 110px;height: 150px;border: 1px solid #E5E5E5;')
			div(style='margin-left: 130px;')
				b.font16.mright10 {{manager.name}}
				span.bbg.wc(style='padding: 1px 8px') {{manager.job}}
				
				p
					span(ng-show='manager.sex == 0') 男
					span(ng-show='manager.sex == 1') 女
					|  / {{manager.age}}岁 / {{manager.eduction}} / {{manager.workyear}}年从业经验

				p
					&nbsp;&nbsp;&nbsp;&nbsp;{{manager.intro}}

	.dialog.border.g.gf-dialog.hidden.riskLevelDialog(fixed=1, ng-show='dialog.MoneyTip', gf-remove-class='hidden')
		.close(ng-click='dialog.MoneyTip=false', title='关闭') &nbsp;
		.title.font16 {{product.title}}
		.pad30
			p.rc.b(ng-show='userFxdj != 0')
				根据您所填写的我司<<投资者风险能力调查评估与问卷>>, 您的风险属性类型评估结果为{{riskLevelLabels[userFxdj]}}型, 鉴于您所购买的产品风险级别为{{fundRiskLevelLabels[product.risk_level]}}风险型, 高于您的风险承受能力, 请您充分了解自身风险承受能力水平及产品风险属性.
			p.rc.b(ng-show='userFxdj == 0') 您暂未开展风险测评，请开展风险测评后购买产品。
			p
				a(href='javascript:void(0);', ng-click='dialog.MoneyTip=false', ng-show='userFxdj != 0').btn.primary.mtop10 确定
				a(href='/webservice/risk', ng-click='dialog.MoneyTip=false', gf-append-back).btn.primary.mleft20.mtop10
					span(ng-show='userFxdj == 0') 风险测评
					span(ng-show='userFxdj != 0') 风险再测评

	//开放日查询日历控件
	.mtop40.mbottom40.calendar-box.radius8.hidden(ng-controller='App.MoneyOpendayCtrl', ng-init='_y=false;_m=false;', ng-click='_y=false;_m=false;')
		.arrow-wrap
			.arrow
			.blank
			.btip
				.ib.pad5.f08257bg.mright8
				| 橙色表示开放日

		.b.relative.font14.mtop30.mleft30.mright30
			.ib.year-box.vam.cp(ng-click='_y=!_y;_m=false')
				.mleft20 {{year}}

			.ib(ng-switch='_y')
				ul.year-box-list(ng-switch-when='true')
					li(ng-repeat='y in years', index='$index', ng-click='$parent.$parent.year=y;$parent.$parent._y=false;changeDate(y, month)')
						a(href='#', onclick='return false') {{y}}

			span.vam.mleft8 年

			.ib.year-box.month-box.vam.cp(ng-click='_m=!_m;_y=false')
				.mleft20 {{month}}
			
			.year-box-list.month-box-list(ng-show='_m')
				.month-month-box-cell.cp(index='0', ng-click='month=1;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 1
				.month-month-box-cell.cp(index='1', ng-click='month=2;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 2
				.month-month-box-cell.cp(index='2', ng-click='month=3;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 3
				.month-month-box-cell.cp(index='3', ng-click='month=4;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 4
				.month-month-box-cell.cp(index='4', ng-click='month=5;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 5
				.month-month-box-cell.cp(index='5', ng-click='month=6;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 6
				.month-month-box-cell.cp(index='6', ng-click='month=7;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 7
				.month-month-box-cell.cp(index='7', ng-click='month=8;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 8
				.month-month-box-cell.cp(index='8', ng-click='month=9;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 9
				.month-month-box-cell.cp(index='9', ng-click='month=10;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 10
				.month-month-box-cell.cp(index='10', ng-click='month=11;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 11
				.month-month-box-cell.cp(index='11', ng-click='month=12;_m=false;changeDate(year, month)')
					a(href='#', onclick='return false') 12

			span.vam.mleft8 月

		.mtop25.font13.mleft30
			each w in ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
				.week-1-7 #{w}

		.mtop10.font14.mleft30
			.week-1-7.b(ng-repeat='d in days')
				span(ng-class='{important: d.cls}') {{d.day}}
